package com.icss.flow.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.icss.flow.pojo.entity.TModule;
import com.icss.flow.pojo.vo.TModuleVo;
import com.icss.flow.service.TModuleService;
import com.icss.flow.mapper.TModuleMapper;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author Administrator
* @description 针对表【t_module】的数据库操作Service实现
* @createDate 2024-04-09 11:17:47
*/
@Service
public class TModuleServiceImpl extends ServiceImpl<TModuleMapper, TModule>
    implements TModuleService{

    @Override
    public List<TModuleVo> getAllModules() {
        List<TModule> moduleList = this.list();
        return BeanUtil.copyToList(moduleList, TModuleVo.class);
    }
}




